package setting

var DevContainerConfig = struct {
	Enable                 bool
	Web_Terminal_Image     string
	Web_Terminal_Container string
}{}

func loadDevContainerSettingsFrom(rootCfg ConfigProvider) {
	sec := rootCfg.Section("devcontainer")
	DevContainerConfig.Enable = sec.Key("ENABLE").MustBool(true)
	DevContainerConfig.Web_Terminal_Image = sec.Key("WEB_TERMINAL_IMAGE").MustString("devstar.cn/devstar/webterminal:latest")
	DevContainerConfig.Web_Terminal_Container = sec.Key("WEB_TERMINAL_CONTAINER").MustString("")
}
